package cn.song.enums;

import lombok.Getter;

@Getter
public enum ResultEnum {
    SUCCESS(0,"成功"),
    PRODUCT_NOT_EXIST(10,"商品不存在"),
    PRODUCT_NOT_ENOUGH(11,"库存不够"),
    ORDERMASTER_NOT_EXIST(12,"商品订单不存在"),
    ORDERDETAILA_NOT_EXIST(13,"商品详单不存在"),
    ORDER_STATUS_ERROR(14,"订单状态不正确"),
    ORDER_UPDATE_FAIL(15,"取消订单更新失败"),
    ORDER_FINISH_FAIL(16,"完结订单更新失败"),
    ORDER_PAYSTATUS_ERROR(17,"订单支付状态不正确"),
    ORDER_PAYSTATUS_FAIL(18,"订单支付状态更新失败"),
    ORDER_PARAMS_ERRRO(19,"请求参数不正确"),
    CONVERT_PARAMS_ERRRO(20,"参数转换错误"),
    CARD_EMPTY(21,"购物车为空"),
    OPENID_IS_EMPTY(22,"openid为空"),
    OPENID_IS_SAME(23,"当前商品不属于此用户"),
    OPENID_IS_NOT_EXIST(24,"取消商品不存在"),
    WECHAT_ERROR(25,"微信公众号问题"),
    ORDER_NOT_EXIST(26,"订单号不存在" );

    private Integer code;

    private  String message;

    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
